<!---总览页面真实内容-->
<template>
  <div class="ele-body">
    <a-tabs default-active-key="1" @change="callbackActivityTab">
      <a-tab-pane key="1" tab="数据监控">
        <device-envcontrol-monitor :data="data" />
      </a-tab-pane>
      <a-tab-pane key="2" tab="传感器列表">
        <device-env-control-channel :data="data" />
      </a-tab-pane>
      <a-tab-pane key="3" tab="实时数据">
        <device-env-control-data :data="data" />
      </a-tab-pane>
      <a-tab-pane key="4" tab="告警数据">
        <device-env-control-channel-warn :data="data" />
      </a-tab-pane>
      <a-tab-pane key="5" tab="历史传感器数据">
        <device-env-control-channel-data :data="data" />
      </a-tab-pane>
      <a-tab-pane key="6" tab="配置调整历史数据">
        <device-env-control-channel-config-log :data="data" />
      </a-tab-pane>
      <a-tab-pane key="7" tab="其他设置">
        <device-env-control-config-other :data="data" />
      </a-tab-pane>
      <a-tab-pane key="8" tab="推送情况">
        <device-env-control-config-queue :data="data" />
      </a-tab-pane>
      <a-tab-pane key="9" tab="固件升级">
        <device-envcontrol-firmware-upgrade :data="data" />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script>
import DeviceEnvcontrolMonitor from './envcontrol-monitor.vue';
import DeviceEnvControlChannel from './envcontrol-channel.vue';
import DeviceEnvControlData from './envcontrol-data.vue';
import DeviceEnvControlConfigOther from './envcontrol-config-other.vue'
import DeviceEnvControlConfigQueue from "./envcontrol-config-queue.vue";
import DeviceEnvControlChannelWarn from "./envcontrol-channel-warn.vue";
import DeviceEnvControlChannelData from "./envcontrol-channel-data.vue";
import DeviceEnvControlChannelConfigLog from "./envcontrol-channel-config-log.vue";
import DeviceEnvcontrolFirmwareUpgrade from "./envcontrol-firmware-upgrade.vue"

export default {
  name: 'DeviceEnvControl',
  components: {
    DeviceEnvControlConfigQueue,
    DeviceEnvcontrolMonitor,
    DeviceEnvControlChannel,
    DeviceEnvControlData,
    DeviceEnvControlConfigOther,
    DeviceEnvControlChannelWarn,
    DeviceEnvControlChannelData,
    DeviceEnvControlChannelConfigLog,
    DeviceEnvcontrolFirmwareUpgrade
  },
  props: {
    data: Object
  },
  data() {
    return {


    };
  },
  methods: {
    callbackActivityTab (index) {
      console.log(index)
    },
  }
};
</script>
